package classes.help 
{
	import flash.display.MovieClip;
	import flash.events.Event;
	import flash.events.MouseEvent;
	import flash.net.SharedObject;
	
	import com.mttang.event.CommonEvent;
	import classes.Global;
	import classes.GameSetting;
	
	/**
	 * ...
	 * @author fox
	 */
	public class HighScore extends MovieClip
	{
		
		public function HighScore() 
		{			
		}
		
		public function showScore():void {
			layoutScore();
			btn_close.addEventListener(MouseEvent.CLICK, closeClickHandler);
		}
		
		private function layoutScore():void {
			var _data:Object = SharedObject.getLocal(GameSetting.saveSoData).data.dataRockman;
			var _tmpArr:Array = new Array();
			this.one_txt.text = _data[0].user.name;
			trace(_data.length);
		}
		
		private function closeClickHandler(e:MouseEvent):void {
			dispatchEvent(new Event(CommonEvent.BACK_EVENT));
		}
/*************************************************************/		
	}
}